import { Injectable } from '@angular/core';
import {FrameContext,BindingData,Repository} from '@farris/devkit';

@Injectable()
export class SbssYhplyglFrmControllerService {
  constructor(
    private frameContext:FrameContext
    ) {
  }

  /**
   * 组件初始化事件
   * @remarks 
   * @returns 
   */
  componentOnInit(): any {
    this.setDefaultConfigs()
  }


   /*
  * 筛选方案默认值设置
  */
  private setDefaultConfigs() {
    const defaultValue = {
      fieldConfigs: [
          {//下拉
              labelCode: "BillStatus.BillState",
              value: {
                  key: "SubmitApproval",
                  value: [
                    { value: "SubmitApproval",name: "提交审批" }
                  ]
              }
          },
      ]}

    this.frameContext.uiState['queryScheme1Binding'] = defaultValue
  }
}
